package com.cskaoyan.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties("wd.aliyun")
@Data
public class WdAliyunProperties {
  String accessKeyId;// wd.aliyun.access-key-id
  String accessKeySecret;// wd.aliyun.access-key-secret
  Oss oss;
  Sms sms;

  @Data
  public static class Oss {
    String bucket; // wd.aliyun.oss.bucket
    String endPoint;
    String urlPrefix;
  }

  @Data
  public static class Sms {
    String signName;
    String templateCode;
    String region;
  }
}